<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        h2{
            margin-top: 200px;
            height: 100px;
            margin-left: 20px;
        }
        main{
            margin: 0 auto;
            height: 500px;
            width: 80%;
        }
        main .top_box{
            box-sizing: border-box;
            width: 100%;
        }
        main .top_box input{
            border: transparent;
            border-bottom: 1px solid gray;
            width: 100%;
            height: 80px;
            box-sizing: border-box;
            padding-left: 20px;
            font-size: 20px;
            outline: none;

        }
        main .spans {
            height: 400px;
        }
        main .top_box button{
            width: 100%;
            margin-top: 30px;
            border-radius: 25px;
            height: 50px;
            background-color: cadetblue;
            color: white;
            font-size: 20px;
        }
        main .spans{
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
            font-size: 18px;
            color: skyblue;
        }
        main .box{
            display: flex;
            justify-self:flex-start;
            align-items: center;
            font-size: 18px;
        }
        main .box input{
            width: 30px;
            height: 20px;

        }
    </style>
</head>
<body>
    <h2>密码登录</h2>
    <main id="app">
        <div class="top_box">
            <input type="text " placeholder="手机/用户名" v-model="form.phone">
            <input type="password" placeholder="密码"  v-model="form.pass"> 
            <button  @click="login">登录</button >
        </div>
        <div class="spans">
            <span>手机号登录</span>
            <span>忘记密码</span>
        </div>
        <div class="box">
            <input type="checkbox">
            <p>已阅读并同意<span>《用户服务协议》、《隐私政策》</span></p>
        </div>
    </main>
</body>
</html>
<script src="./vue-2.5.21.js"></script>
<script>
    var v = new Vue({
        el:'#app',
        data:{
            form:{phone:'root',pass:'1234'}
        },
        methods:{
            login(){
                console.log(this.form);

            }
        }
    })
</script>